package com.x.erp.model;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 销售单据
 */
@MappingTable(tableName="ERP_SALE_BILL")
public class SaleBill extends BaseObject {

	private static final long serialVersionUID = 6117934339342538838L;
	@MappingColumn(columnName = "BILL_ID", columnPk = true, columnLength = 32)
	private String billId;//主键

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "BILL_DATE")
	private Date billDate;//开票日期

	@MappingColumn(columnName = "BILL_CODE")
	private String billCode;//发票代码

	@MappingColumn(columnName = "BILL_NO")
	private String billNo;//发票号码

	@MappingColumn(columnName = "BILL_PRICE")
	private BigDecimal billPrice;//发票金额

	@MappingColumn(columnName = "BILL_CAR_MARK")
	private String billCarMark;//厂型

	@MappingColumn(columnName = "BILL_CAR_VIN")
	private String billCarVin;//车驾号

	@MappingColumn(columnName = "BILL_CAR_ENGINE_NO")
	private String billCarEngineNo;//发动机号

	@MappingColumn(columnName = "BILL_CAR_NAME")
	private String billCarName;//车辆名称

	@MappingColumn(columnName = "BILL_CAR_COLOR")
	private String billCarColor;//车辆颜色

	@MappingColumn(columnName = "BILL_CAR_PLATE_HEAD")
	private String billCarPlateHead;//车辆号牌

	@MappingColumn(columnName = "BILL_CAR_PLATE_MIDDLE")
	private String billCarPlateMiddle;//车辆号牌

	@MappingColumn(columnName = "BILL_CAR_PLATE_CODE")
	private String billCarPlateCode;//车辆号牌

	@MappingColumn(columnName = "BILL_DMV")
	private String billDmv;//转入地车管所

	@MappingColumn(columnName = "BILL_SELLER_NAME")
	private String billSellerName;//卖家名称

	@MappingColumn(columnName = "BILL_SELLER_MOBILE")
	private String billSellerMobile;//卖家电话

	@MappingColumn(columnName = "BILL_SELLER_ADDRESS")
	private String billSellerAddress;//卖家地址

	@MappingColumn(columnName = "BILL_SELLER_NO")
	private String billSellerNo;//卖家身份证

	@MappingColumn(columnName = "BILL_BUYER_NAME")
	private String billBuyerName;//买家名称

	@MappingColumn(columnName = "BILL_BUYER_MOBILE")
	private String billBuyerMobile;//买家电话

	@MappingColumn(columnName = "BILL_BUYER_ADDRESS")
	private String billBuyerAddress;//买家地址

	@MappingColumn(columnName = "BILL_BUYER_NO")
	private String billBuyerNo;//买家身份证

	@MappingColumn(columnName = "BILL_REMARK")
	private String billRemark;//发票备注

	@MappingColumn(columnName = "BILL_SCORE")
	private Integer billScore;//完整度

	@MappingColumn(columnName = "BILL_CREATE_TIME")
	private Date billCreateTime;//创建时间

	@MappingColumn(columnName = "CAR_TYPE_ID")
	private Integer carTypeId;//车类型

	@MappingTable(tableName = "BASE_CAR_TYPE")
	private CarType carType;

	@MappingColumn(columnName = "BRAND_ID")
	private Integer brandId;//品牌

	@MappingTable(tableName = "BASE_BRAND")
	private Brand brand;

	@MappingColumn(columnName = "SERIES_ID")
	private Integer seriesId;//车系

	@MappingTable(tableName = "BASE_SERIES")
	private Series series;

	@MappingColumn(columnName = "MODEL_ID")
	private Integer modelId;//车型

	@MappingTable(tableName = "BASE_MODEL")
	private Model model;

	@MappingColumn(columnName = "PRICE_ID")
	private Integer priceId;//车型

	@MappingTable(tableName = "ERP_PRICE")
	private Price price;

	@MappingColumn(columnName = "PROVINCE_ID")
	private String provinceId;//转入地省

	@MappingTable(tableName = "BASE_PROVINCE")
	private Province province;

	@MappingColumn(columnName = "CITY_ID")
	private String cityId;//转入地市

	@MappingTable(tableName = "BASE_CITY")
	private City city;

	@MappingColumn(columnName = "MARKET_ID")
	private String marketId;//市场

	@MappingTable(tableName = "ERP_MARKET")
	private Market market;

	@MappingColumn(columnName = "SHOP_ID")
	private String shopId;//商场

	@MappingTable(tableName = "ERP_SHOP")
	private Shop shop;

	@MappingColumn(columnName = "USER_ID")
	private String userId;//创建人

	@MappingTable(tableName = "ERP_USER")
	private User user;

	public String getBillId() {
		return billId;
	}

	public void setBillId(String billId) {
		this.billId = billId;
	}

	public Date getBillDate() {
		return billDate;
	}

	public void setBillDate(Date billDate) {
		this.billDate = billDate;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}

	public BigDecimal getBillPrice() {
		return billPrice;
	}

	public void setBillPrice(BigDecimal billPrice) {
		this.billPrice = billPrice;
	}

	public String getBillCarMark() {
		return billCarMark;
	}

	public void setBillCarMark(String billCarMark) {
		this.billCarMark = billCarMark;
	}

	public String getBillCarVin() {
		return billCarVin;
	}

	public void setBillCarVin(String billCarVin) {
		this.billCarVin = billCarVin;
	}

	public String getBillCarEngineNo() {
		return billCarEngineNo;
	}

	public void setBillCarEngineNo(String billCarEngineNo) {
		this.billCarEngineNo = billCarEngineNo;
	}

	public String getBillCarName() {
		return billCarName;
	}

	public void setBillCarName(String billCarName) {
		this.billCarName = billCarName;
	}

	public String getBillCarColor() {
		return billCarColor;
	}

	public void setBillCarColor(String billCarColor) {
		this.billCarColor = billCarColor;
	}

	public String getBillCarPlateHead() {
		return billCarPlateHead;
	}

	public void setBillCarPlateHead(String billCarPlateHead) {
		this.billCarPlateHead = billCarPlateHead;
	}

	public String getBillCarPlateMiddle() {
		return billCarPlateMiddle;
	}

	public void setBillCarPlateMiddle(String billCarPlateMiddle) {
		this.billCarPlateMiddle = billCarPlateMiddle;
	}

	public String getBillCarPlateCode() {
		return billCarPlateCode;
	}

	public void setBillCarPlateCode(String billCarPlateCode) {
		this.billCarPlateCode = billCarPlateCode;
	}

	public String getBillDmv() {
		return billDmv;
	}

	public void setBillDmv(String billDmv) {
		this.billDmv = billDmv;
	}

	public String getBillSellerName() {
		return billSellerName;
	}

	public void setBillSellerName(String billSellerName) {
		this.billSellerName = billSellerName;
	}

	public String getBillSellerMobile() {
		return billSellerMobile;
	}

	public void setBillSellerMobile(String billSellerMobile) {
		this.billSellerMobile = billSellerMobile;
	}

	public String getBillSellerAddress() {
		return billSellerAddress;
	}

	public void setBillSellerAddress(String billSellerAddress) {
		this.billSellerAddress = billSellerAddress;
	}

	public String getBillSellerNo() {
		return billSellerNo;
	}

	public void setBillSellerNo(String billSellerNo) {
		this.billSellerNo = billSellerNo;
	}

	public String getBillBuyerName() {
		return billBuyerName;
	}

	public void setBillBuyerName(String billBuyerName) {
		this.billBuyerName = billBuyerName;
	}

	public String getBillBuyerMobile() {
		return billBuyerMobile;
	}

	public void setBillBuyerMobile(String billBuyerMobile) {
		this.billBuyerMobile = billBuyerMobile;
	}

	public String getBillBuyerAddress() {
		return billBuyerAddress;
	}

	public void setBillBuyerAddress(String billBuyerAddress) {
		this.billBuyerAddress = billBuyerAddress;
	}

	public String getBillBuyerNo() {
		return billBuyerNo;
	}

	public void setBillBuyerNo(String billBuyerNo) {
		this.billBuyerNo = billBuyerNo;
	}

	public String getBillRemark() {
		return billRemark;
	}

	public void setBillRemark(String billRemark) {
		this.billRemark = billRemark;
	}

	public Integer getBillScore() {
		return billScore;
	}

	public void setBillScore(Integer billScore) {
		this.billScore = billScore;
	}

	public Date getBillCreateTime() {
		return billCreateTime;
	}

	public void setBillCreateTime(Date billCreateTime) {
		this.billCreateTime = billCreateTime;
	}

	public Integer getCarTypeId() {
		return carTypeId;
	}

	public void setCarTypeId(Integer carTypeId) {
		this.carTypeId = carTypeId;
	}

	public CarType getCarType() {
		return carType;
	}

	public void setCarType(CarType carType) {
		this.carType = carType;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public Integer getSeriesId() {
		return seriesId;
	}

	public void setSeriesId(Integer seriesId) {
		this.seriesId = seriesId;
	}

	public Series getSeries() {
		return series;
	}

	public void setSeries(Series series) {
		this.series = series;
	}

	public Integer getModelId() {
		return modelId;
	}

	public void setModelId(Integer modelId) {
		this.modelId = modelId;
	}

	public Model getModel() {
		return model;
	}

	public void setModel(Model model) {
		this.model = model;
	}

	public Integer getPriceId() {
		return priceId;
	}

	public void setPriceId(Integer priceId) {
		this.priceId = priceId;
	}

	public Price getPrice() {
		return price;
	}

	public void setPrice(Price price) {
		this.price = price;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public Market getMarket() {
		return market;
	}

	public void setMarket(Market market) {
		this.market = market;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
